package com.hwadee.teachingprocessmanagementsystem.dto.student;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 学生考试成绩Dto
 * @Author: Jukomu
 * @Package: com.hwadee.teachingprocessmanagementsystem.dto.student
 * @Project: TeachingProcessManagementSystem
 * @name: StudentExamResultDto
 * @Date: 2024/7/17-10:45
 * @Filename: StudentExamResultDto
 */
@Data
public class StudentExamResultDto implements Serializable {
    private List<StudentExamResultInfo> studentExamResultInfoList;

    public void addStudentExamArrangementInfo(StudentExamResultInfo studentExamArrangementInfo) {
        if (this.studentExamResultInfoList == null) {
            this.studentExamResultInfoList = new ArrayList<>();
        }
        this.studentExamResultInfoList.add(studentExamArrangementInfo);
    }

    public void addStudentExamArrangementInfo(String courseId, String courseName, String teacherId, String teacherName, String date, String startTime, String endTime, String campus, String classroom, String method, String assessmentMethod, String score) {
        StudentExamResultInfo studentExamResultInfo = new StudentExamResultInfo(courseId, courseName, teacherId, teacherName, date, startTime, endTime, campus, classroom, method, assessmentMethod,score);
        this.addStudentExamArrangementInfo(studentExamResultInfo);
    }
}

@Data
class StudentExamResultInfo implements Serializable {
    // 课程编号
    private String courseId;
    // 课程名称
    private String courseName;
    // 教师编号
    private String teacherId;
    // 教师名称
    private String teacherName;
    // 日期
    private String date;
    // 开始时间
    private String startTime;
    // 结束时间
    private String endTime;
    // 校区
    private String campus;
    // 教室
    private String classroom;
    // 考试类型
    private String method;
    // 考试方式
    private String assessmentMethod;
    // 考试成绩
    private String score;

    public StudentExamResultInfo() {
    }

    public StudentExamResultInfo(String courseId, String courseName, String teacherId, String teacherName, String date, String startTime, String endTime, String campus, String classroom, String method, String assessmentMethod, String score) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.teacherId = teacherId;
        this.teacherName = teacherName;
        this.date = date;
        this.startTime = startTime;
        this.endTime = endTime;
        this.campus = campus;
        this.classroom = classroom;
        this.method = method;
        this.assessmentMethod = assessmentMethod;
        this.score = score;
    }
}

